//
//  BlockAlertView.h
//  WeiboFun
//
//  Created by luo danal on 8/14/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BlockAlertView : UIAlertView <UIAlertViewDelegate>
{
    void (^_buttonClickBlock)(int buttonIndex);
}

- (id)initWithTitle:(NSString *)title 
            message:(NSString *)message 
  cancelButtonTitle:(NSString *)cancelButtonTitle 
     okButtonTitle:(NSString *)okButtonTitle;

- (id)initWithTitle:(NSString *)title 
            message:(NSString *)message 
  cancelButtonTitle:(NSString *)cancelButtonTitle 
      okButtonTitle:(NSString *)okButtonTitle
   buttonClickBlock:(void(^)(int buttonIndex))block;

- (void)setButtonClickBlock:(void(^)(int buttonIndex))block;

@end
